package com.ruoyi.project.system.news.domain;

import com.ruoyi.project.system.dept.domain.Dept;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.web.domain.BaseEntity;
import java.util.Date;

/**
 * 校园新闻表 sys_news
 * 
 * @author Waynnn
 * @date 2019-04-04
 */
public class News extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** 新闻id */
	private Long newsId;
	/** 新闻标题 */
	private String newsTitle;
	/** 新闻内容 */
	private String newsContent;
	/** 学校id */
	private Long deptId;
	/** 图片路径 */
	private String imagePath;
	/** 删除标志（0代表存在 2代表删除） */
	private String delFlag;
	/** 创建者 */
	private String createBy;
	/** 创建时间 */
	private Date createTime;
	/** 更新者 */
	private String updateBy;
	/** 更新时间 */
	private Date updateTime;

	private Dept dept;

	public Dept getDept() {
		return dept;
	}

	public void setDept(Dept dept) {
		this.dept = dept;
	}

	public void setNewsId(Long newsId)
	{
		this.newsId = newsId;
	}

	public Long getNewsId()
	{
		return newsId;
	}
	public void setNewsTitle(String newsTitle) 
	{
		this.newsTitle = newsTitle;
	}

	public String getNewsTitle() 
	{
		return newsTitle;
	}
	public void setNewsContent(String newsContent) 
	{
		this.newsContent = newsContent;
	}

	public String getNewsContent() 
	{
		return newsContent;
	}
	public void setDeptId(Long deptId)
	{
		this.deptId = deptId;
	}

	public Long getDeptId()
	{
		return deptId;
	}
	public void setImagePath(String imagePath)
	{
		this.imagePath = imagePath;
	}

	public String getImagePath() 
	{
		return imagePath;
	}
	public void setDelFlag(String delFlag) 
	{
		this.delFlag = delFlag;
	}

	public String getDelFlag() 
	{
		return delFlag;
	}
	public void setCreateBy(String createBy) 
	{
		this.createBy = createBy;
	}

	public String getCreateBy() 
	{
		return createBy;
	}
	public void setCreateTime(Date createTime) 
	{
		this.createTime = createTime;
	}

	public Date getCreateTime() 
	{
		return createTime;
	}
	public void setUpdateBy(String updateBy) 
	{
		this.updateBy = updateBy;
	}

	public String getUpdateBy() 
	{
		return updateBy;
	}
	public void setUpdateTime(Date updateTime) 
	{
		this.updateTime = updateTime;
	}

	public Date getUpdateTime() 
	{
		return updateTime;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("newsId", getNewsId())
            .append("newsTitle", getNewsTitle())
            .append("newsContent", getNewsContent())
            .append("deptId", getDeptId())
            .append("imagePath", getImagePath())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
